﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using DG.Tweening;
public class DoLocal : MonoBehaviour
{
    public float time = 1;
    public bool delayRealse = false;
    private void OnEnable()
    {
        Tweener tweener = transform.DOMove(UIManager.Instance.GetLeftTopPos(), time);
        tweener.SetEase(Ease.InCirc);
        if (delayRealse)
        {
            tweener.OnComplete(()=> { gameObject.SetActive(false);});// tweener.Kill(); 

        }
  
    }

}
